﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DonAndSeekList.aspx.cs" Inherits="ZHDJ.PersonalCenter.Module.DonationAndSeekHelp.DonAndSeekList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server"></f:PageManager>
        <f:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server">
            <Regions>
                <f:Region ID="Region1" runat="server" ShowBorder="false" ShowHeader="false" Position="Center" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BodyPadding="5px 5px 5px 0">
                    <Items>
                        <f:Form ID="Form2" runat="server" ShowHeader="false" AnchorValue="100% 70%" BodyPadding="5px" ShowBorder="false">
                            <Rows>
                                <f:FormRow ID="FormRow1" runat="server">
                                    <Items>
                                        <f:TextBox ID="txtName" runat="server" EmptyText="请输入名称" LabelWidth="70px" LabelAlign="right" MaxLength="20" Label="名称"></f:TextBox>
                                        <f:DropDownList ID="ddlType" runat="server" LabelWidth="70px" Label="类型" LabelAlign="right">
                                        </f:DropDownList>
                                        <f:DropDownList ID="ddlState" runat="server" LabelWidth="70px" Label="状态" LabelAlign="right">
                                        </f:DropDownList>
                                        <f:DropDownList ID="ddlDName" runat="server" LabelWidth="70px" Label="捐助名义" LabelAlign="right">
                                        </f:DropDownList>
                                        <f:DropDownList ID="ddlDFrom" runat="server" LabelWidth="70px" Label="捐助形式" LabelAlign="right">
                                        </f:DropDownList>
                                        <f:DropDownList ID="ddlPurpose" runat="server" LabelWidth="70px" Label="资助用途" LabelAlign="right">
                                        </f:DropDownList>
                                    </Items>
                                </f:FormRow>
                                <f:FormRow ID="FormRow2" runat="server" Width="150px">
                                    <Items>
                                        <f:Button Margin="0 0 0 5" ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" Icon="SystemSearch"></f:Button>
                                        <f:Button ID="btnMate" Text="匹配" runat="server" OnClick="btnMate_Click">
                                        </f:Button>
                                    </Items>
                                </f:FormRow>
                            </Rows>
                        </f:Form>

                        <f:Grid ID="gvSeekHelp" runat="server" Title="求助信息" BoxFlex="1" ShowBorder="true" ShowHeader="true"
                            EnableCheckBoxSelect="true" DataKeyNames="ID" AllowSorting="true"
                            OnSort="gvSeekHelp_Sort" SortField="MobileNo" SortDirection="DESC" AllowPaging="true"
                            IsDatabasePaging="true" OnPreDataBound="gvSeekHelp_PreDataBound" OnRowCommand="gvSeekHelp_RowCommand"
                            OnPageIndexChange="gvSeekHelp_PageIndexChange">
                            <PageItems>
                                <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                                </f:ToolbarSeparator>
                                <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                                </f:ToolbarText>
                                <f:DropDownList ID="ddlSeekHelpPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlSeekHelpPageSize_SelectedIndexChanged" runat="server">
                                    <f:ListItem Text="10" Value="10"></f:ListItem>
                                    <f:ListItem Text="20" Value="20"></f:ListItem>
                                    <f:ListItem Text="50" Value="50"></f:ListItem>
                                    <f:ListItem Text="100" Value="100"></f:ListItem>
                                </f:DropDownList>
                            </PageItems>
                            <Columns>

                                <f:BoundField DataField="Name" ExpandUnusedSpace="true" HeaderText="名称" />
                                <f:BoundField DataField="SPerson" TextAlign="Center" HeaderText="求助人" />
                                <f:BoundField DataField="ViewType" TextAlign="Center" HeaderText="类型" />
                                <f:BoundField DataField="EffectiveDate" Width="150px" HeaderText="有效期" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" />
                                <f:BoundField DataField="ViewState" TextAlign="Center" HeaderText="状态" />
                            </Columns>
                        </f:Grid>
                    </Items>
                    <Items>
                        <f:Grid ID="gvDonation" runat="server" Title="捐助信息" BoxFlex="1" ShowBorder="true" ShowHeader="true"
                            EnableCheckBoxSelect="true" DataKeyNames="ID" AllowSorting="true"
                            OnSort="gvDonation_Sort" SortField="MobileNo" SortDirection="DESC" AllowPaging="true"
                            IsDatabasePaging="true" OnPreDataBound="gvDonation_PreDataBound" OnRowCommand="gvDonation_RowCommand"
                            OnPageIndexChange="gvDonation_PageIndexChange">
                            <PageItems>
                                <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                                </f:ToolbarSeparator>
                                <f:ToolbarText ID="ToolbarText2" runat="server" Text="每页记录数：">
                                </f:ToolbarText>
                                <f:DropDownList ID="ddlDonationPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlDonationPageSize_SelectedIndexChanged" runat="server">
                                    <f:ListItem Text="10" Value="10"></f:ListItem>
                                    <f:ListItem Text="20" Value="20"></f:ListItem>
                                    <f:ListItem Text="50" Value="50"></f:ListItem>
                                    <f:ListItem Text="100" Value="100"></f:ListItem>
                                </f:DropDownList>
                            </PageItems>
                            <Columns>
                                <f:BoundField DataField="Name" ExpandUnusedSpace="true" HeaderText="名称" />
                                <f:BoundField DataField="DPerson" TextAlign="Center" HeaderText="捐助人" />
                                <f:BoundField DataField="ViewType" TextAlign="Center" HeaderText="类型" />
                                <f:BoundField DataField="ViewPurpose" TextAlign="Center" HeaderText="资助用途" />
                                <f:BoundField DataField="EffectiveDate" Width="150px" HeaderText="捐助有效期" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" />
                                <f:BoundField DataField="ViewState" TextAlign="Center" HeaderText="状态" />
                            </Columns>
                        </f:Grid>
                    </Items>

                </f:Region>
            </Regions>
        </f:RegionPanel>
        <f:Window ID="Dialog" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableIFrame="true" Width="900px" Height="735px" OnClose="Dialog_Close">
        </f:Window>
    </form>
</body>
</html>
